import 'dart:ui';

class KColors {
  static const Color white = Color(0xFFFFFFFF); //白色
  static const Color primaryColor = Color(0xFFFFFFFF);
  static const Color appBarColor = Color(0xFFE1E1E1);
  static const Color backgroundColor = Color(0xFFF4F4F4);
  static const Color appBarTitleColor = Color(0xFF7D7D7D);

  ///选中颜色
  static const Color delColor = Color(0xFF0BCCFF);
  static const Color homeDelColor = Color(0xFF0BCCFF);

  ///未选中颜色
  static const Color norColor = Color(0xFF7D7D7D);

  static const Color tf8f8f8 = Color(0xFFf8f8f8);
  static const Color tf1f1f1 = Color(0xFFf1f1f1);
  static const Color t004455 = Color(0xFF004455);
  static const Color t999999 = Color(0xFF999999);
  static const Color tf4f4f4 = Color(0xFFF4F4F4);
  static const Color te1e1e1 = Color(0xFFE1E1E1);
  static const Color t42000000 = Color(0x42000000);
  static const Color t994030 = Color(0xFF994030);
  static const Color te53935 = Color(0xFFE53935);
  static const Color t20000000 = Color(0x20000000);
  static const Color black = Color(0xFF000000);
  static const Color t00000000 = Color(0x00000000);

  static const Color hotDotTextColor = Color(0xFF7D7D7D);

  static Color colorFromARGB(Color color, {double alpha = 1}) {
    if (alpha < 0) {
      alpha = 0;
    } else if (alpha > 1) {
      alpha = 1;
    }
    return Color.fromARGB(
        (alpha * 255).toInt(), color.red, color.green, color.blue);
  }
}
